import { $post, $postParms } from '@/utils/require'

export let $semesterList = async (params:any) => {
  let ret = await $post('admin/semester/list', params);
  // console.log(ret);
  return ret;
}
export let $semesterAdd = async (params:any) => {
  let ret = await $post('admin/semester/add', params);
  console.log(ret);
  return ret;
}
export let $semesterEdit = async (params:any) => {
  let ret = await $post('admin/semester/edit', params);
  console.log(ret);
  return ret;
}
export let $semesterSet = async (params:any) => {
  let ret = await $postParms('admin/semester/edit',{}, params);
  console.log(ret);
  return ret;
}


//设置当前学期
export let $editSemester=async (params:any)=>{
  return await $postParms('/system/edit',{},params);
}
//获取当前学期
export let $getSemester=async ()=>{
  return await $postParms('/system/getCurrentSe',{},{});
}

export let $deleteSemester  = async (params:any)=>{
  return await $postParms('/system/delete',{},params);
}
